"""
通用id
"""
RESOURCE_ID = '//*[@resource-id="com.xiaoma.launcher:id/{}"]'

# 电台
RESOURCE_ID_Xting = '//*[@resource-id="com.xiaoma.xting:id/{}"]'

# 音乐
RESOURCE_ID_Music = '//*[@resource-id="com.xiaoma.music:id/{}"]'

# 语音
RESOURCE_ID_Assistant = '//*[@resource-id="com.xiaoma.assistant:id/{}"]'

# 技能添加边框
skills_added = '//*[@resource-id="com.xiaoma.launcher:id/container"]/android.support.v7.widget.RecyclerView[{}]/android.view.ViewGroup'

# 技能添加边框
skills_added_frame = '//*[@resource-id="com.xiaoma.launcher:id/rv_action"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.launcher:id/view_bg"]'

# 技能添加名称
skills_added_name = '//*[@resource-id="com.xiaoma.launcher:id/rv_action"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.launcher:id/tv_skill_name"]'

# 技能添加关闭按钮
skills_added_close = '//*[@resource-id="com.xiaoma.launcher:id/rv_action"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.launcher:id/iv_del"]'

# 技能添加详细内容
skills_added_control = '//*[@resource-id="com.xiaoma.launcher:id/rv_action"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.launcher:id/tv_skill_action"]'

# 技能图标
skills_icon = '//*[@resource-id="com.xiaoma.launcher:id/gv_skill"]/android.view.ViewGroup[{}]/android.widget.ImageView'

# 技能标题
skills_text = '//*[@resource-id="com.xiaoma.launcher:id/gv_skill"]/android.view.ViewGroup[{}]/android.widget.TextView'

# 手动选择标题
manual_selection_title_text = '//*[@resource-id="com.xiaoma.assistant:id/ct_location"]/android.widget.TextView[{}]'

# 城市首字母
city_initials_text = '//*[@resource-id="com.xiaoma.assistant:id/recyclerView"]/android.widget.LinearLayout[{}]/*[@resource-id="com.xiaoma.assistant:id/tag"]'

# 城市名称
city_name_text = '//*[@resource-id="com.xiaoma.assistant:id/recyclerView"]/android.widget.LinearLayout[{}]/*[@resource-id="com.xiaoma.assistant:id/name"]'

# 服务tab
service_tab_name_text = '//*[@resource-id="com.xiaoma.launcher:id/tab_layout_map"]/android.widget.LinearLayout/android.support.v7.app.ActionBar$Tab[{}]/android.view.ViewGroup/*[@resource-id="com.xiaoma.launcher:id/map_title_text"]'

# 服务tab选择框
service_tab_select_icon = '//*[@resource-id="com.xiaoma.launcher:id/tab_layout_map"]/android.widget.LinearLayout/android.support.v7.app.ActionBar$Tab[{}]/android.view.ViewGroup/*[@resource-id="com.xiaoma.launcher:id/map_tv_indicator"]'

# 城市图标
city_icon = '//*[@resource-id="com.xiaoma.launcher:id/rv_poi"]/android.widget.RelativeLayout[{}]/*[@resource-id="com.xiaoma.launcher:id/iv_location"]'

# 城市地址
city_address_detailed_text = '//*[@resource-id="com.xiaoma.launcher:id/rv_poi"]/android.widget.RelativeLayout[{}]/*[@resource-id="com.xiaoma.launcher:id/tv_name"]'

# 城市地址
city_address_text = '//*[@resource-id="com.xiaoma.launcher:id/rv_poi"]/android.widget.RelativeLayout[{}]/*[@resource-id="com.xiaoma.launcher:id/tv_address"]'

# 频幅icon
frequency_icon = '//*[@resource-id="com.xiaoma.xting:id/include_native"]/android.view.ViewGroup[{}]/android.view.View'

# 搜索结果
search_result_text = '//*[@resource-id="com.xiaoma.xting:id/rv_search_result"]/android.widget.FrameLayout/android.view.ViewGroup[{}]/android.widget.TextView'

# 车控名称开
car_control_name_icon = '//*[@resource-id="com.xiaoma.assistant:id/sisclamer_scrollview"]/android.view.ViewGroup/android.widget.RelativeLayout[{}]/android.widget.CheckBox'

# 车控开关开
car_control_switch_btn = '//*[@resource-id="com.xiaoma.assistant:id/sisclamer_scrollview"]/android.view.ViewGroup/android.widget.RelativeLayout[{}]/android.widget.ToggleButton'

# 整车温度
# car_control_temperature_btn = '//*[@resource-id="com.xiaoma.assistant:id/sisclamer_scrollview"]/android.view.ViewGroup/android.widget.RelativeLayout[{}]'

# 车窗预设
# car_control_window_btn = '//*[@resource-id="com.xiaoma.assistant:id/sisclamer_scrollview"]/android.view.ViewGroup/android.widget.RelativeLayout[{}]'

# 温度
temperature_display_text = '//*[@resource-id="android:id/content"]/android.view.ViewGroup/android.widget.ImageView[{}]'

# 新闻标签
new_tab_btn = '//*[@resource-id="com.xiaoma.assistant:id/rv_news_channel"]/android.widget.LinearLayout[{}]/android.widget.TextView'

# 技能标题名称
skill_name_title_text = '//*[@resource-id="com.xiaoma.launcher:id/rv_skill"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.launcher:id/tv_title"]'

# 技能名称
skill_name_text = '//*[@resource-id="com.xiaoma.launcher:id/rv_skill"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.launcher:id/tv_voice"]'

# 技能图标
skill_icon = '//*[@resource-id="com.xiaoma.launcher:id/rv_skill"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.launcher:id/iv_action1"]'

# 一段话标题
passage_title_text = '//*[@resource-id="com.xiaoma.assistant:id/view_content"]/android.view.ViewGroup[{}]/android.widget.TextView'

# 音乐标题
music_title_text = '//*[@resource-id="com.xiaoma.music:id/view_content"]/android.view.ViewGroup[{}]/android.widget.TextView'

# 媒体标题
volume_title_text = '//*[@resource-id="com.xiaoma.assistant:id/view_content"]/android.view.ViewGroup/android.widget.TextView[{}]'

# 媒体初始音量
volume_initial_text = '//*[@resource-id="com.xiaoma.assistant:id/view_content"]/android.view.ViewGroup/android.widget.TextView[{}]'

# 媒体音量条
volume_icon = '//*[@resource-id="com.xiaoma.assistant:id/view_content"]/android.view.ViewGroup[{}]/android.view.View'

# 媒体最大音量
volume_initial_max_text = '//*[@resource-id="com.xiaoma.assistant:id/view_content"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.assistant:id/media_volume_value"]'

# 确认按钮
volume_sure_btn = '//*[@resource-id="com.xiaoma.assistant:id/view_content"]/android.view.ViewGroup[{}]/android.widget.Button'

# 文案提示
volume_tip_text = '//*[@resource-id="com.xiaoma.assistant:id/view_content"]/android.view.ViewGroup/android.widget.TextView[{}]'

